/* pages/category/category.wxss */

page {
  height: 100%;
}
uni-page-wrapper {
  height: 0 !important;
}
.container {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.main {
  position: fixed;
  display: flex;
  overflow: hidden;
  margin-top: 116rpx;
  height: calc(100% - 100rpx);
  width: 100%;
}
/* #ifdef MP-WEIXIN */
.main {
  margin-top: 78rpx;
}
/* #endif */

/* 搜索栏 */

.search-bar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  color: #777;
  box-shadow: 0 2rpx 2rpx rgba(0, 0, 0, 0.07);
  z-index: 3;
  padding: 0 0 20rpx;
  margin-top: 20px;
}
/* #ifdef MP-WEIXIN */
.search-bar {
  margin-top: 0px;
}
/* #endif */

.search-bar .arrow {
  width: 20rpx;
  height: 20rpx;
  border-bottom: 2rpx solid #b3b3b3;
  border-left: 2rpx solid #b3b3b3;
  transform: rotate(45deg);
  position: absolute;
  left: 30rpx;
  top: 41rpx;
}

.search-bar .search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60rpx;
  background: #f7f7f7;
  z-index: 999;
  width: 95%;
  border-radius: 50rpx;
  text-align: center;
  margin: auto;
}

.sear-input {
  font-size: 28rpx;
}

.search-bar .search-hint {
  font-size: 28rpx;
  position: absolute;
  right: 30rpx;
  top: 32rpx;
}

.search-bar .search-box .search-img {
  width: 32rpx;
  height: 32rpx;
  margin-right: 10rpx;
}

/* 左侧菜单栏 */

.leftmenu {
  width: 25%;
  box-sizing: border-box;
  background-color: #f5f6f7;
  overflow: scroll;
  z-index: 2;
  /* #ifdef H5 */
  padding-bottom: 120rpx;
  /* #endif */
}

.menu-item {
  line-height: 90rpx;
  max-width: 200rpx;
  padding: 0 10rpx;
  text-align: center;
  padding-top: 4rpx;
  border-bottom: 2rpx silid #e3e3e3;
  position: relative;
  color: #777;
  font-size: 28rpx;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.menu-item.active {
  color: #ff6d13;
  font-size: 28rpx;
  font-weight: bold;
  position: relative;
  background: #fff;
}

.menu-item.active:before {
  position: absolute;
  left: 20rpx;
  content: '';
  width: 8rpx;
  height: 32rpx;
  top: 35rpx;
  background: #ff6d13;
}

.menu-item text.tips-num {
  position: absolute;
  top: 20rpx;
  right: 15rpx;
  border-radius: 15rpx;
  width: 30rpx;
  height: 30rpx;
  background: red;
  color: #fff;
  font-size: 25rpx;
  line-height: 30rpx;
}

/* 右侧商品栏 */

.rightcontent {
  width: 75%;
  background-color: #fff;
  z-index: 1;
  box-sizing: border-box;
  /* #ifdef H5 */
  padding-bottom: 120rpx;
  /* #endif */
}

.rightcontent .adver-map {
  width: auto;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  margin: 30rpx 20rpx 0;
}

.rightcontent .adver-map .item-a {
  display: block;
  font-size: 0;
  width: 100%;
  height: 160rpx;
  border-radius: 17rpx;
  overflow: hidden;
}

.rightcontent .adver-map .item-a image {
  max-width: 100%;
  max-height: 100%;
  width: 1220px;
}

.rightcontent .sub-category {
  /* display: flex;
  flex-wrap: wrap; */
}

/* 二级分类 */
.sub-category-con {
  margin: 20rpx;
}
.sub-cate-title {
  display: flex;
  align-items: center;
  font-weight: 800;
}
.view-all {
  color: #999;
  font-weight: normal;
  font-size: 22rpx;
}
.sub-cate-text {
  flex: 1;
  font-size: 28rpx;
}
.th-cate-con {
  display: flex;
  flex-wrap: wrap;
}

.sub-category-item {
  width: 33.33%;
  display: flex;
  flex-direction: column;
  padding: 30rpx;
  box-sizing: border-box;
  align-items: center;
}
.sub-category-item .sub-category-item-pic {
  width: 120rpx !important;
  height: 120rpx !important;
  margin-bottom: 10rpx;
  border-radius: 9rpx;
}
.sub-category-item text {
  font-size: 25rpx;
  word-break: break-word;
  font-weight: 350;
  font-size: 24rpx;
  color: #666666;
}
